<%@ page language="java"  pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<%@ include file="/includes/main.jsp"%>

<h2 class="contentTitle"><hi:text key="查看页面"  parameterLanguageKeys="旅游订单"/></h2>
<div class="pageContent">
	
	<div class="viewInfo" layoutH="97">
				
		<dl>
			<dt><hi:text key="开班日期" entity="TripOrder"/>：</dt><dd>${tripOrder.trip.trip_date}</dd>
		</dl>
		<dl>
			<dt><hi:text key="线路名称" entity="TripOrder"/>：</dt><dd>${tripOrder.trip.trip_model.trip_name}</dd>
		</dl>
		<dl>
			<dt><hi:text key="订单号" entity="TripOrder"/>：</dt><dd>${tripOrder.order_number}</dd>
		</dl>
		<dl>
			<dt><hi:text key="订单金额" entity="TripOrder"/>：</dt><dd>${tripOrder.amount}</dd>
		</dl>
		<dl>
			<dt><hi:text key="订单来源" entity="TripOrder"/>：</dt><dd><hi:select emu="orderType" name="tripOrder.order_type" isLabel="true"/></dd>
		</dl>
		<dl>
			<dt><hi:text key="订单状态" entity="TripOrder"/>：</dt><dd><hi:select emu="orderStatus" name="tripOrder.order_status" isLabel="true"/></dd>
		</dl>
		<dl>
			<dt><hi:text key="下单日期" entity="TripOrder"/>：</dt><dd><fmt:formatDate value="${tripOrder.order_date}" pattern="yyyy-MM-dd"/></dd>				  	 
		</dl>
		<dl>
			<dt><hi:text key="下单人" entity="TripOrder"/>：</dt><dd>${tripOrder.customer.fullName}</dd>
		</dl>
		<dl>
			<dt><hi:text key="预订人数" entity="TripOrder"/>：</dt><dd>${tripOrder.numberOfPassagers}</dd>
		</dl>
		<dl>
			<dt><hi:text key="联系人" entity="TripOrder"/>：</dt><dd>${tripOrder.contact}</dd>
		</dl>
		<dl>
			<dt><hi:text key="联系人证件号" entity="TripOrder"/>：</dt><dd>${tripOrder.contactId}</dd>
		</dl>
		<dl>
			<dt><hi:text key="联系人手机" entity="TripOrder"/>：</dt><dd>${tripOrder.contactCellPhone}</dd>
		</dl>
		<dl>
			<dt><hi:text key="联系人电话" entity="TripOrder"/>：</dt><dd>${tripOrder.contanctPhone}</dd>
		</dl>
		<dl>
			<dt><hi:text key="联系人邮箱" entity="TripOrder"/>：</dt><dd>${tripOrder.contactEmail}</dd>
		</dl>
		<dl>
			<dt><hi:text key="联系人邮编" entity="TripOrder"/>：</dt><dd>${tripOrder.contactPostCode}</dd>
		</dl>
		<dl>
			<dt><hi:text key="联系人地址" entity="TripOrder"/>：</dt><dd>${tripOrder.contactAddress}</dd>
		</dl>

		<div class="divider"></div>
		
		<div class="tabs">
			<div class="tabsHeader">
				<div class="tabsHeaderContent">
					<ul>
						<li><a href="javascript:void(0)"><span><hi:text key="旅客"/></span></a></li>
					</ul>
				</div>
			</div>
			<div class="tabsContent" style="height:120px;">
				<div style="overflow: auto">
					<table class="list" width="100%">
						<thead>
							<tr>
								<th><hi:text key="旅客名" entity="Passenger"/></th>
								<th><hi:text key="证件号" entity="Passenger"/></th>
								<th><hi:text key="旅客类型" entity="Passenger"/></th>
								<th><hi:text key="特殊价格" entity="Passenger"/></th>
							</tr>
						</thead>
						<tbody>
							<c:forEach var="item" items="${tripOrder.passengers}">
							<tr>						
								<td>${item.name}</td>
								<td>${item.id_card}</td>
				        		<td><hi:select emu="passengerType" name="item.type" isLabel="true"/></td>
								<td>${item.specialPrice.name}</td>
							</tr>
							</c:forEach>
						</tbody>
					</table>
				</div>
				
			</div>
			<div class="tabsFooter">
				<div class="tabsFooterContent"></div>
			</div>
		</div>				
	</div>

	<div class="formBar">
		<ul>
			<li><div class="button"><div class="buttonContent"><button class="close" type="button"><hi:text key="关闭"/></button></div></div></li>
		</ul>
	</div>
</div>
